package kr.hkit.powerjava.chapter8;

class A {

	/*
	 * public void aa() { System.out.println("aa()"); }
	 * 
	 * public void aa(int a) { System.out.println("aa(int a)"); }
	 */
	public void aa(int... a) {
		System.out.println("인수의 개수 : " + a.length);
		for (int c : a) {
			System.out.println(c);
		}
		System.out.println();
	}

	public void bb(String str, int... c) {
		System.out.println(str);
		System.out.println("인수의 개수 : " + c.length);
		for (int d : c) {
			System.out.println(d);
		}
		System.out.println();
	}
	/*
	 * public void aa(double a) { System.out.println("aa(double a)"); }
	 */
}

/*
 * public void aa() { System.out.println("aa - start"); bb();
 * System.out.println("aa - end"); } public void aa(int a){
 * System.out.println("aa()"); }
 * 
 * public void aa(double a){
 * 
 * }
 */
/*
 * public void bb() { System.out.println("bb - start"); cc();
 * System.out.println("bb - end"); }
 * 
 * public void cc() { System.out.println("cc - start");
 * System.out.println("cc - end"); } }
 */
public class MethedCallTest {
	public static void main(String[] args) {
		A a = new A();
		a.bb("여여", 1, 2, 3, 4);
		a.bb("야", 1, 2, 3);
		a.bb("허허", 1, 2);
		a.bb("거거", 1);

		System.out.println("-------------------------------");
		a.aa();
		a.aa(3);
		a.aa(1, 2);
		a.aa(1, 2, 3);
		a.aa(1, 2, 3, 4);

	}
}